import Vue from 'vue'
import App from './App.vue'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import router from './router';
import store from './store'
Vue.use(ViewUI);

import moment from 'moment';
Vue.filter('dateformatTime', function(dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
	return dataStr?moment(dataStr).format(pattern):''
})
Vue.filter('dateformatDate', function(dataStr, pattern = 'YYYY-MM-DD') {
	return dataStr?moment(dataStr).format(pattern):''
})

Vue.config.productionTip = false

new Vue({
	router,
	store,
	render: h => h(App),
}).$mount('#app')
